/**
 * English Language Pack
 * xxpay Agent System
 */
window.I18N_MESSAGES_ENUS = {
    // System Name
    'system.name': 'Agent System',
    'system.title': 'xxpay Payment Agent System',
    'system.welcome': 'Welcome to Agent System',
    'system.copyright': '© 2024 xxpay Payment Platform',

    // Navigation Menu
    'menu.dashboard': 'Dashboard',
    'menu.merchant': 'Merchant Management',
    'menu.order': 'Order Management',
    'menu.finance': 'Finance Management',
    'menu.commission': 'Commission Management',
    'menu.settlement': 'Settlement Management',
    'menu.report': 'Reports',
    'menu.account': 'Account Management',
    'menu.setting': 'Settings',

    // Merchant Management
    'merchant.list': 'Merchant List',
    'merchant.add': 'Add Merchant',
    'merchant.edit': 'Edit Merchant',
    'merchant.detail': 'Merchant Details',
    'merchant.status': 'Merchant Status',
    'merchant.balance': 'Merchant Balance',
    'merchant.info': 'Merchant Information',
    'merchant.config': 'Merchant Configuration',
    'merchant.sub': 'Sub-merchants',

    // Order Management
    'order.list': 'Order List',
    'order.detail': 'Order Details',
    'order.search': 'Order Search',
    'order.status': 'Order Status',
    'order.amount': 'Order Amount',
    'order.time': 'Order Time',
    'order.channel': 'Payment Channel',
    'order.merchant': 'Merchant',

    // Finance Management
    'finance.overview': 'Finance Overview',
    'finance.balance': 'Account Balance',
    'finance.withdraw': 'Withdrawal Management',
    'finance.settlement': 'Settlement Management',
    'finance.bill': 'Bill Management',
    'finance.flow': 'Fund Flow',

    // Commission Management
    'commission.overview': 'Commission Overview',
    'commission.rate': 'Commission Rate',
    'commission.amount': 'Commission Amount',
    'commission.settlement': 'Commission Settlement',
    'commission.history': 'Commission History',
    'commission.config': 'Commission Configuration',

    // Settlement Management
    'settlement.list': 'Settlement List',
    'settlement.apply': 'Apply Settlement',
    'settlement.detail': 'Settlement Details',
    'settlement.status': 'Settlement Status',
    'settlement.amount': 'Settlement Amount',
    'settlement.fee': 'Service Fee',
    'settlement.account': 'Settlement Account',

    // Reports
    'report.overview': 'Data Overview',
    'report.transaction': 'Transaction Reports',
    'report.commission': 'Commission Reports',
    'report.settlement': 'Settlement Reports',
    'report.merchant': 'Merchant Reports',
    'report.channel': 'Channel Reports',

    // Account Management
    'account.info': 'Account Information',
    'account.profile': 'Profile',
    'account.security': 'Security Settings',
    'account.password': 'Change Password',
    'account.api': 'API Management',

    // Form Fields
    'field.id': 'ID',
    'field.name': 'Name',
    'field.code': 'Code',
    'field.type': 'Type',
    'field.status': 'Status',
    'field.remark': 'Remark',
    'field.createTime': 'Create Time',
    'field.updateTime': 'Update Time',
    'field.operator': 'Operator',

    // Agent Fields
    'field.agentId': 'Agent ID',
    'field.agentName': 'Agent Name',
    'field.agentType': 'Agent Type',
    'field.agentLevel': 'Agent Level',
    'field.parentAgent': 'Parent Agent',
    'field.contactName': 'Contact Name',
    'field.contactPhone': 'Contact Phone',
    'field.contactEmail': 'Contact Email',
    'field.address': 'Address',

    // Merchant Fields
    'field.mchId': 'Merchant ID',
    'field.mchName': 'Merchant Name',
    'field.mchType': 'Merchant Type',
    'field.balance': 'Balance',
    'field.freezeBalance': 'Frozen Balance',
    'field.rate': 'Rate',

    // Order Fields
    'field.orderId': 'Order ID',
    'field.mchOrderNo': 'Merchant Order No',
    'field.amount': 'Amount',
    'field.currency': 'Currency',
    'field.subject': 'Subject',
    'field.body': 'Description',
    'field.channelId': 'Channel ID',
    'field.channelName': 'Channel Name',
    'field.payTime': 'Pay Time',

    // Commission Fields
    'field.commissionRate': 'Commission Rate',
    'field.commissionAmount': 'Commission Amount',
    'field.commissionType': 'Commission Type',
    'field.commissionStatus': 'Commission Status',

    // Status Values
    'status.enabled': 'Enabled',
    'status.disabled': 'Disabled',
    'status.pending': 'Pending',
    'status.processing': 'Processing',
    'status.success': 'Success',
    'status.failed': 'Failed',
    'status.cancelled': 'Cancelled',
    'status.normal': 'Normal',
    'status.frozen': 'Frozen',
    'status.closed': 'Closed',

    // Order Status
    'order.status.init': 'Initialized',
    'order.status.paying': 'Paying',
    'order.status.success': 'Payment Success',
    'order.status.failed': 'Payment Failed',
    'order.status.closed': 'Closed',
    'order.status.refund': 'Refunded',

    // Settlement Status
    'settlement.status.pending': 'Pending Settlement',
    'settlement.status.processing': 'Settling',
    'settlement.status.success': 'Settlement Success',
    'settlement.status.failed': 'Settlement Failed',

    // Buttons
    'btn.add': 'Add',
    'btn.edit': 'Edit',
    'btn.delete': 'Delete',
    'btn.save': 'Save',
    'btn.cancel': 'Cancel',
    'btn.confirm': 'Confirm',
    'btn.submit': 'Submit',
    'btn.reset': 'Reset',
    'btn.search': 'Search',
    'btn.export': 'Export',
    'btn.import': 'Import',
    'btn.refresh': 'Refresh',
    'btn.back': 'Back',
    'btn.detail': 'Details',
    'btn.config': 'Config',
    'btn.enable': 'Enable',
    'btn.disable': 'Disable',
    'btn.apply': 'Apply',
    'btn.approve': 'Approve',
    'btn.reject': 'Reject',

    // Operation Tips
    'tip.select': 'Please select data to operate',
    'tip.confirm.delete': 'Are you sure to delete selected data?',
    'tip.confirm.enable': 'Are you sure to enable selected data?',
    'tip.confirm.disable': 'Are you sure to disable selected data?',
    'tip.no.data': 'No Data Available',
    'tip.loading': 'Loading...',
    'tip.save.success': 'Save Successfully',
    'tip.save.failed': 'Save Failed',
    'tip.delete.success': 'Delete Successfully',
    'tip.delete.failed': 'Delete Failed',

    // Form Validation
    'validate.required': 'This field is required',
    'validate.email': 'Please enter a valid email address',
    'validate.phone': 'Please enter a valid phone number',
    'validate.number': 'Please enter a number',
    'validate.positive': 'Please enter a positive number',
    'validate.length.min': 'Length cannot be less than {min} characters',
    'validate.length.max': 'Length cannot exceed {max} characters',
    'validate.length.range': 'Length should be between {min}-{max} characters',

    // Pagination
    'page.total': 'Total {total} records',
    'page.current': 'Page {current}',
    'page.size': '{size} per page',
    'page.goto': 'Go to',
    'page.prev': 'Previous',
    'page.next': 'Next',
    'page.first': 'First',
    'page.last': 'Last',

    // Time
    'time.today': 'Today',
    'time.yesterday': 'Yesterday',
    'time.week': 'This Week',
    'time.month': 'This Month',
    'time.year': 'This Year',
    'time.custom': 'Custom',
    'time.start': 'Start Time',
    'time.end': 'End Time',

    // User Related
    'user.login': 'Login',
    'user.logout': 'Logout',
    'user.profile': 'Profile',
    'user.password': 'Change Password',
    'user.username': 'Username',
    'user.password.old': 'Old Password',
    'user.password.new': 'New Password',
    'user.password.confirm': 'Confirm Password',

    // Language Switch
    'lang.chinese': '中文',
    'lang.english': 'English',
    'lang.switch': 'Switch Language',
    'lang.switch.success': 'Language switched successfully',
    'lang.switch.failed': 'Language switch failed',

    // Error Messages
    'error.network': 'Network connection failed',
    'error.timeout': 'Request timeout',
    'error.server': 'Server error',
    'error.permission': 'Permission denied',
    'error.not.found': 'Page not found',
    'error.unknown': 'Unknown error',

    // Success Messages
    'success.operation': 'Operation successful',
    'success.save': 'Save successful',
    'success.delete': 'Delete successful',
    'success.update': 'Update successful',
    'success.create': 'Create successful',

    // Agent Specific
    'agent.level': 'Agent Level',
    'agent.commission': 'Commission Management',
    'agent.sub.merchant': 'Sub-merchants',
    'agent.performance': 'Performance Statistics',
    'agent.settlement': 'Settlement Management',

    // Level Related
    'level.primary': 'Primary Agent',
    'level.secondary': 'Secondary Agent',
    'level.tertiary': 'Tertiary Agent',
    'level.general': 'General Agent',
    'level.gold': 'Gold Agent',
    'level.diamond': 'Diamond Agent',

    // Channel Related
    'channel.alipay': 'Alipay',
    'channel.wechat': 'WeChat Pay',
    'channel.unionpay': 'UnionPay',
    'channel.bank': 'Online Banking',
    'channel.other': 'Other Channels',

    // Statistics Related
    'stat.today': 'Today\'s Statistics',
    'stat.yesterday': 'Yesterday\'s Statistics',
    'stat.week': 'This Week\'s Statistics',
    'stat.month': 'This Month\'s Statistics',
    'stat.year': 'This Year\'s Statistics',

    // Amount Related
    'amount.total': 'Total Amount',
    'amount.success': 'Success Amount',
    'amount.failed': 'Failed Amount',
    'amount.commission': 'Commission Amount',
    'amount.settlement': 'Settlement Amount',

    // Count Related
    'count.total': 'Total Count',
    'count.success': 'Success Count',
    'count.failed': 'Failed Count',

    // Rate Related
    'rate.success': 'Success Rate',
    'rate.commission': 'Commission Rate',
    'rate.settlement': 'Settlement Rate'
};

// Set messages to I18n
if (window.I18n) {
    if (window.I18n.getLocale() === 'en_US') {
        window.I18n.messages = window.I18N_MESSAGES_ENUS;
    }
}
